package com.hkyl.hospital.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class Operation implements Serializable {
    private Integer operationId;

    private String operationName;

    private String description;

    private BigDecimal operationPrice;

    private Integer parentId;

    private List<Operation> children;

    private String avg2;

    private static final long serialVersionUID = 1L;

    public Integer getOperationId() {
        return operationId;
    }

    public void setOperationId(Integer operationId) {
        this.operationId = operationId;
    }

    public String getOperationName() {
        return operationName;
    }

    public void setOperationName(String operationName) {
        this.operationName = operationName == null ? null : operationName.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public BigDecimal getOperationPrice() {
        return operationPrice;
    }

    public void setOperationPrice(BigDecimal operationPrice) {
        this.operationPrice = operationPrice;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getAvg2() {
        return avg2;
    }

    public void setAvg2(String avg2) {
        this.avg2 = avg2 == null ? null : avg2.trim();
    }
}